<?php
/*
Module latest news for joomla 1.5
Slice effect by Jquery
Develope by Tranquang
At Vinazoom co., Ltd
website:  www.vinazoom.com
License GNU/GPL
*/

// no direct access
defined('_JEXEC') or die('Restricted access');


require_once (dirname(__FILE__).DS.'helper.php');
$css=JURI::base().'modules/mod_vnz_latestnews_slice/css/style.css';
$js1=JURI::base().'modules/mod_vnz_latestnews_slice/js/jquery-126.js';
$js2=JURI::base().'modules/mod_vnz_latestnews_slice/js/slider.js';
$document = &JFactory::getDocument();
$document->addScript($js1);
$document->addScript($js2);
JHTML::stylesheet('',$css);
$w_slice			=	@$params->get( 'w_slice', '' );
$h_slice			=	@$params->get( 'h_slice', '' );
$w_image			=	@$params->get( 'w_image', '' );
$h_image			=	@$params->get( 'h_image', '' );
$duration			=	@$params->get( 'duration', '' );
$list = modVNZLatestNewsHelper::getList($params);

require(JModuleHelper::getLayoutPath('mod_vnz_latestnews_slice'));